import request from '@/router/axios';

export const getSmsCode = (row) => {
  return request({
    url: '/api/rb-service/smsCode',
    method: 'post',
    data: row
  })
}

export const submit = (row) => {
  return request({
    url: '/api/blade-user/register/password',
    method: 'post',
    data: row
  })
}

export const changeAccount = (row) => {
  return request({
    url: '/api/rb-service/smsCode/changeAccount',
    method: 'post',
    data: row
  })
}

export const updateServiceAccount = (row) => {
  return request({
    url: '/api/blade-user/updateServiceAccount',
    method: 'post',
    data: row
  })
}
// 获取验证码
export const getSmsCodeInner = (row) => {
  return request({
    url: '/api/rb-service/smsCodeInner',
    method: 'post',
    data: row
  })
}
// 保存
export const updatePayPwd = (row) => {
  return request({
    url: '/api/blade-user/updatePayPwd',
    method: 'post',
    data: row
  })
}
// 是否 设置二级密码
export const userHasInfo = () => {
  return request({
    url: '/api/blade-user/userHasInfo',
    method: 'get'
  })
}